package com.xinchao.model.vo;

import com.xinchao.core.constant.BusinessConstant;
import com.xinchao.core.util.DateUtils;

/**
 * 
 * <p>Title: CkDeviceInfoListExportVO</p>  
 * <p>Description: 创客设备信息exportVO</p>  
 * @author huangf 
 * @date 2018年7月9日
 */
public class CkDeviceInfoListExportVO {
	/** 创建时间 */
	private Long createTime;
	/** 机器码 */
	private String deviceCode;
	/** mac地址 */
	private String deviceMac;
	/** 在线状态 */
	private Integer deviceStatus;
	/** 机型 */
	private String deviceModel;
	/** 省份 */
	private String province;
	/** 市 */
	private String city;
	/** 区 */
	private String area;
	/** 商家名称 */
	private String companyName;
	/** 设备名称 */
	private String deviceName;

	public Long getCreateTime() {
		return createTime;
	}
	
	public String getCreateTimeDesc() {
		if ( null == createTime ){ return null;}
		return DateUtils.longTimeStampToStringDate(createTime, DateUtils.PATTEN_YMD_HMS); 
	}
	
	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public String getDeviceCode() {
		return deviceCode;
	}

	public void setDeviceCode(String deviceCode) {
		this.deviceCode = deviceCode;
	}

	public String getDeviceMac() {
		return deviceMac;
	}

	public void setDeviceMac(String deviceMac) {
		this.deviceMac = deviceMac;
	}
	
	public Integer getDeviceStatus() {
		return deviceStatus;
	}

	public String getDeviceStatusDesc() {
		if (BusinessConstant.DEVICE_INFO_STATUS_ON_LINE == deviceStatus) {
			return "在线";
		}else {
			return "离线";
		}
	}
	
	public void setDeviceStatus(Integer deviceStatus) {
		this.deviceStatus = deviceStatus;
	}

	public String getDeviceModel() {
		return deviceModel;
	}

	public void setDeviceModel(String deviceModel) {
		this.deviceModel = deviceModel;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getDeviceName() {
		return deviceName;
	}

	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}
	
}
